package homework;

import Abstract.Point;

public class Shape {
    private Point position;
    public Shape(Point position){
        this.position=position;
    }
    public Shape(int x,int y){
        this(new Point(x,y));
    }

    public Shape() {
    }

    public double area(){
        return -1;
    }
    public boolean container(Point p){
        return false;
    }
    public boolean container(int x,int y){
        return this.container(new Point(x,y));
    }
    public Point getPosition(){
        return position;
    }
    public void setPosition(Point position){
        this.position=position;
    }

}
